// 模拟接口响应（实际需对接后端）
export function getDashboardData() {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        serviceCount: 6,
        dailyRequests: 2300,
        currentQps: 15,
        tenantCount: 3,
        dailyTraffic: {
          yesterday: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120],
          today: [20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130],
        },
        serviceType: { http: 60, tcp: 30, grpc: 10 },
      })
    }, 500)
  })
}
